using TerritoryGame.Domain.ValueObjects;

namespace TerritoryGame.Domain.Entities;

/// <summary>
/// 游戏结果实体
/// </summary>
public class GameResult
{
    public PlayerId PlayerId { get; }
    public PlayerNickname Nickname { get; }
    public PlayerColor Color { get; }
    public int Area { get; }
    public int Rank { get; private set; }
    
    public GameResult(PlayerId playerId, PlayerNickname nickname, PlayerColor color, int area)
    {
        PlayerId = playerId;
        Nickname = nickname;
        Color = color;
        Area = area;
        Rank = 0;
    }
    
    public void SetRank(int rank)
    {
        Rank = rank;
    }
}
